package sync

import "time"

type SyncLogsModel struct {
	Id                 int       `json:"id" gorm:"type:int(11) auto_increment; NOT NULL; primary_key"`
	TypeClassifyId     int       `json:"type_classify_id" gorm:"type:int(11); COMMENT:'类型分类'"`
	BusinessClassifyId int       `json:"business_classify_id" gorm:"type:int(11); COMMENT:'业务分类'"`
	Date               time.Time `json:"date" gorm:"type:date; COMMENT:'生成日期'"`
	TotalNum           int       `json:"total_num" gorm:"type:int(11); COMMENT:'总数'"`
	SuccessNum         int       `json:"success_num" gorm:"type:int(11); COMMENT:'成功条数'"`
	ErrorNum           int       `json:"error_num" gorm:"type:int(11); COMMENT:'失败条数'"`
	Status             int       `json:"status" gorm:"type:tinyint(1); COMMENT:'状态'"`
	Ids                string    `json:"ids" gorm:"type:text"`
	Type               int       `json:"type" gorm:"type:tinyint(1); COMMENT:'类型'"`
	CreatedAt          time.Time `json:"created_at" gorm:"type:timestamp"`
	UpdatedAt          time.Time `json:"updated_at" gorm:"type:timestamp"`
}

func (SyncLogsModel) TableName() string {
	return "sync_logs"
}
